home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>4.2.  Difference of Gaussians</title>
- <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" />
- <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" />
- <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" />
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
- <link rel="start" href="index.html" title="GNU Image Manipulation Program" />
- <link rel="up" href="filters-edge.html" title="4.  Edge-Detect Filters" />
- <link rel="prev" href="filters-edge.html" title="4.  Edge-Detect Filters" />
- <link rel="next" href="plug-in-edge.html" title="4.3.  Edge" />
- </head>
- <body>
- <div class="navheader">
- <table width="100%" summary="Navigation header">
- <tr>
- <th colspan="3" align="center">4.2. 
- <span lang="en" xml:lang="en">Difference of Gaussians</span>
- </th>
- </tr>
- <tr>
- <td width="20%" align="left"><a accesskey="p" href="filters-edge.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <th width="60%" align="center">4. 
- <span lang="en" xml:lang="en">Edge-Detect Filters</span>
- </th>
- <td width="20%" align="right"> <a accesskey="n" href="plug-in-edge.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- </table>
- <hr />
- </div>
- <div class="sect2" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h3 class="title"><a id="plug-in-dog"></a>4.2. 
- <span lang="en" xml:lang="en">Difference of Gaussians</span>
- </h3>
- </div>
- <div>
- <div class="revhistory">
- <table border="1" width="100%" summary="Revision history">
- <tr>
- <th align="left" valign="top" colspan="3">
- <b>Revision History</b>
- </th>
- </tr>
- <tr>
- <td align="left">Revision $Revision: 2440 $</td>
- <td align="left">2006-11-19</td>
- <td align="left">j.h</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- <a id="id2735269" class="indexterm"></a>
- <a id="id2735287" class="indexterm"></a>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2735296"></a>4.2.1. 
- <span lang="en" xml:lang="en">Overview</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2735306"></a>
- <p class="title">
- <b>Figure 16.31. 
- <span lang="en" xml:lang="en">
- Applying example for the “<span class="quote">Difference of Gaussians</span>”
- filter
- </span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/examples/taj_orig.jpg" alt="Applying example for the Difference of Gaussians filter" />
- <div class="caption">
- <p>Original image</p>
- </div>
- </div>
- <div class="mediaobject">
- <img src="../images/filters/examples/edge-taj-dog.jpg" alt="Applying example for the Difference of Gaussians filter" />
- <div class="caption">
- <p>Filter “<span class="quote">Difference of Gaussians</span>”
- applied</p>
- </div>
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <p>
- You can find this filter through
- <span class="guimenu">Filters</span> ‚Üí <span class="guisubmenu">Edge detect</span> ‚Üí <span class="guimenuitem">Difference of Gaussians</span>
- </p>
- <p>
- This filter does edge detection using the
- so-called “<span class="quote">Difference of Gaussians</span>”
- algorithm, which works by performing two different Gaussian blurs on the
- image, with a different blurring radius for each, and subtracting them
- to yield the result. This algorithm is very widely used in artificial
- vision (maybe in biological vision as well!), and is pretty fast because
- there are very efficient methods for doing Gaussian blurs. The most
- important parameters are the blurring radii for the two Gaussian blurs.
- It is probably easiest to set them using the preview, but it may help to
- know that increasing the smaller radius tends to give thicker-appearing
- edges, and decreasing the larger radius tends to increase the
- “<span class="quote">threshold</span>”
- for recognizing something as an edge. In most cases you will get nicer
- results if Radius 2 is smaller than Radius 1, but nothing prevents you
- from reversing them, and in situations where you have a light figure on
- the dark background, reversing them may actually improve the result.
- </p>
- </div>
- <div class="sect3" lang="en" xml:lang="en">
- <div class="titlepage">
- <div>
- <div>
- <h4 class="title"><a id="id2735440"></a>4.2.2. 
- <span lang="en" xml:lang="en">Options</span>
- </h4>
- </div>
- </div>
- </div>
- <div class="figure">
- <a id="id2735451"></a>
- <p class="title">
- <b>Figure 16.32. 
- <span lang="en" xml:lang="en">Gaussian Difference filter options</span>
- </b>
- </p>
- <div class="figure-contents">
- <div class="mediaobject">
- <img src="../images/filters/diff-gauss-options.png" alt="Gaussian Difference filter options" />
- </div>
- </div>
- </div>
- <br class="figure-break" />
- <div class="variablelist">
- <dl>
- <dt>
- <span class="term">Smoothing parameters</span>
- </dt>
- <dd>
- <p>
- Radius 1 and Radius 2 are the blurring radii for the two Gaussian
- blurs. The only constraints on them is that they cannot be equal,
- or else the result will be a blank image. If you want to produce
- something that looks like a sketch, in most cases setting Radius 2
- smaller than Radius 1 will give better results.
- </p>
- </dd>
- <dt>
- <span class="term">Normalize</span>
- </dt>
- <dd>
- <p>
- Checking this box causes the brightness range in the result to be
- stretched as much as possible, increasing contrast. Note that in
- the preview, only the part of the image that is shown is taken
- into account, so with <span class="guilabel">Normalize</span>
- checked the preview is not completely accurate. (It is accurate
- except in terms of global contrast, though.)
- </p>
- </dd>
- <dt>
- <span class="term">Invert</span>
- </dt>
- <dd>
- <p>
- Checking this box inverts the result, so that you see dark edges
- on a white background, giving something that looks more like a
- drawing.
- </p>
- </dd>
- </dl>
- </div>
- </div>
- </div>
- <div class="navfooter">
- <hr />
- <table width="100%" summary="Navigation footer">
- <tr>
- <td width="40%" align="left"><a accesskey="p" href="filters-edge.html"><img src="../images/prev.png" alt="Prev" /></a> </td>
- <td width="20%" align="center">
- <a accesskey="u" href="filters-edge.html">
- <img src="../images/up.png" alt="Up" />
- </a>
- </td>
- <td width="40%" align="right"> <a accesskey="n" href="plug-in-edge.html"><img src="../images/next.png" alt="Next" /></a></td>
- </tr>
- <tr>
- <td width="40%" align="left" valign="top"><a accesskey="p" href="filters-edge.html">4. 
- <span lang="en" xml:lang="en">Edge-Detect Filters</span>
- </a> </td>
- <td width="20%" align="center">
- <a accesskey="h" href="index.html">
- <img src="../images/home.png" alt="Home" />
- </a>
- </td>
- <td width="40%" align="right" valign="top"> <a accesskey="n" href="plug-in-edge.html">4.3. 
- <span lang="en" xml:lang="en">Edge</span>
- </a></td>
- </tr>
- </table>
- </div>
- </body>
- </html>
-